package com.taikang.dao;

import com.taikang.dao.base.DefaultCommonDaoImpl;
import com.taikang.entity.ReportRecord;
import org.nutz.dao.Cnd;
import org.springframework.stereotype.Repository;

/**
 * Created by zhai on 16/5/17.
 */
@Repository
public class TaskDao extends DefaultCommonDaoImpl<ReportRecord> {

    public ReportRecord getByTaskId(Integer taskId) {
        return queryForOne(Cnd.where("TaskID", "=", taskId));
    }
}
